package com.lancoo.ccas52.mapper;

import com.lancoo.ccas52.entity.RuleCourseProhibit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import com.lancoo.ccas52.pojo.dto.ArrangeCourseRuleDto;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 课程禁排 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-03-27
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface RuleCourseProhibitMapper extends BaseMapper<RuleCourseProhibit> {

    /**
     * 获取课程禁排部分字段
     * @param taskId
     * @return
     */
    List<ArrangeCourseRuleDto> getArrangeCourseRuleByTaskId(@Param("taskId") Integer taskId);

}
